package com.lzhl.buildjar.dao;

import com.lzhl.buildjar.po.Category;
import com.lzhl.buildjar.po.Scheme;

import java.util.List;

/**
 * @author 李柱良(@柱子的日月)
 * @date 2014/6/19
 */
public interface SchemeDao {

    public Scheme getScheme(long id);
    public List<Scheme> getSchemes(Category parent);
    public Scheme addScheme(Scheme scheme);
    public Scheme saveScheme(Scheme scheme);
    public void deleteScheme(long id);
    public boolean isExists(Category parent, String name);

}
